package com.tjtt.tdm.portlet.service.impl;

import java.util.List;
import java.util.Map;

import com.tjtt.tdm.base.PageResult;
import com.tjtt.tdm.portlet.bean.SysPortlet;
import com.tjtt.tdm.portlet.dao.PortletDao;
import com.tjtt.tdm.portlet.service.PortletService;

public class PortletServiceImpl implements PortletService{

	private PortletDao portletDao;
	
	public List getPortletList(String sql) {
		return portletDao.getPortletList(sql);
	}
	public PortletDao getPortletDao() {
		return portletDao;
	}
	public void setPortletDao(PortletDao portletDao) {
		this.portletDao = portletDao;
	}
	
	public List<SysPortlet> getAllPortlet() {
		return portletDao.getAllPortlet();
	}
	
	public List<SysPortlet> getPortletByids(String ids) {
		return portletDao.getPortletByids(ids);
	}
	public PageResult queryPortletList(Map filterMap){
		return portletDao.queryPortletList(filterMap);
	}
	public void savePortlet(SysPortlet portlet){
		portletDao.savePortlet(portlet);
	}
	public void deletePortlet(String ids)
	{
		portletDao.deletePortlet(ids);
	}
	public SysPortlet GetPortletById(String id)
	{
		return portletDao.GetPortletById(id);
	}
	public void updatePortlet(SysPortlet portlet)
	{
		portletDao.updatePortlet(portlet);
	}
}
